package com.he.DesignPatterns.decorator.demo2;

/**
 * @description: 测试类
 * @Author: HCL
 * @Date: 2024/8/27 14:36
 */
public class Client {

    public static void main(String[] args) {
        QueryInterface queryInterface = new QueryInterfaceImpl();//这样写可以获取它的实现类对象，可以直接调用其方法
        UpdateAdd updateAdd = new UpdateAdd(new DecoratorClass(queryInterface));
        updateAdd.queryData();
        updateAdd.updateData();
    }
}
